package com.tinckay.mapper;

import com.tinckay.entity.po.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Jean
 * @since 2018-10-30
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 查询用户所拥有权限信息
     *
     * @param userName
     * @return
     */
    List<Menu> findUserPermissions(@Param("userName") String userName);


}
